/* Import Variables and Base Styles */
@import './styles/_variables.css';

/* Signup Page Specific Styles */
:root {
  --signup-card-bg: linear-gradient(135deg, #4e82be 0%, #4523c2 100%);
  --signup-border: rgba(0, 0, 0, 0.1);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--background);
}

.signup-container {
  max-width: 500px;
  width: 100%;
  margin: var(--spacing-xl) auto;
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

.welcome-banner {
  background: var(--card-bg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* --- New Unique Welcome Banner Layout --- */
.welcome-banner.alt-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(100deg, #2563eb 0%, #3068ad 100%);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.13), 0 2px 8px rgba(96, 165, 250, 0.09);
  padding: 2.5rem 2rem;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: visible;
}

.banner-graphic svg {
  filter: drop-shadow(0 6px 18px rgba(37, 99, 235, 0.09));
}

.banner-content {
  flex: 1 1 0;
  color: #04bf58;
}


.banner-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #04bf58;
  margin-bottom: 0.8rem;
  letter-spacing: -1px;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  /* text-fill-color: transparent; */
}

.banner-content p {
  font-size: 1.18rem;
  color: #fff;
  margin-bottom: 1.3rem;
  line-height: 1.55;
  font-weight: 500;
}

.banner-cta {
  display: inline-block;
  background: linear-gradient(90deg, #2563eb 0%, #3064a3 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 2.2rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18), 0 2px 8px rgba(96, 165, 250, 0.13);
  font-size: 1.13rem;
  letter-spacing: 0.5px;
}

.banner-cta:hover {
  background: linear-gradient(90deg, #3372bf 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.22), 0 3px 12px rgba(96, 165, 250, 0.16);
}

@media (max-width: 700px) {
  .welcome-banner.alt-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  .banner-graphic {
    margin-bottom: 1rem;
  }
  .banner-content h1 {
    font-size: 1.6rem;
  }
}

.banner-graphic svg {
  filter: drop-shadow(0 6px 18px rgba(99, 102, 241, 0.09));
}


.banner-graphic {
  flex: 0 0 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(-12px);}
}


 --- End New Welcome Banner Layout --- */

.welcome-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgwLDAsMCwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSIvPjwvc3ZnPg==');
  opacity: 0.4;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  z-index: 1;
}

.logo i {
  margin-right: 0.75rem;
  color: var(--primary);
}

.welcome-banner h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.welcome-banner p {
  font-size: 1.125rem;
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Form Styles */
.signup-form {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Remove extra spacing for fields that no longer exist */
.signup-form .form-group {
  margin-bottom: 1.5rem;
}

/* Remove referral group styling (no longer needed) */
.form-group.referral-group {
  display: none;
}

/* Remove confirm password and fullname specific styles if any existed */

.signup-form h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.form-group {
  flex: 1;
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.referral-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.referral-group i {
  margin-right: 0.5rem;
  color: var(--primary);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group i {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  font-size: 1rem;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--light);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  padding-right: 2.5rem; /* Add padding on the right for the toggle button */
}

.input-group:hover {
  border-color: var(--primary-light);
}

/* Style for the left icon (lock, user, phone) */
.input-group i:first-child {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  transition: all 0.3s ease;
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  font-size: 0.9375rem;
  border: none;
  background: transparent;
  color: var(--text);
  transition: all 0.3s ease;
  height: 3rem;
  border-radius: var(--border-radius);
}

.referral-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  background: var(--light);
  color: var(--text);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  height: 3rem;
}

.referral-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.input-group:focus-within i {
  color: var(--primary);
}

.toggle-password {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  width: 2.5rem;
  height: 100%;
}

.toggle-password:hover {
  color: var(--primary);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.toggle-password i {
  font-size: 1.1rem;
}

.submit-btn {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px -1px rgba(77, 116, 225, 0.97), 0 2px 4px -1px rgb(66, 128, 230);
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(8, 34, 199, 0.998), 0 4px 6px -2px rgba(11, 62, 245, 0.97);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px -1px rgb(27, 33, 97);
}

.submit-btn i {
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(3px);
}

.login-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.login-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.login-link a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.login-link a:hover::after {
  width: 100%;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon i {
  font-size: 2.5rem;
  color: var(--success);
}

.success-message h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.success-message p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .signup-container {
    margin: 1rem;
    min-height: auto;
  }
  
  .welcome-banner {
    padding: 2rem 1.5rem;
    text-align: center;
  }
  
  .welcome-banner h1 {
    font-size: 1.75rem;
  }
  
  .signup-form {
    padding: 2rem 1.5rem;
  }
  
  .logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .signup-container {
    margin: 0.5rem;
    border-radius: 0.5rem;
  }
  
  .welcome-banner {
    padding: 1.5rem 1rem;
  }
  
  .welcome-banner h1 {
    font-size: 1.5rem;
  }
  
  .signup-form {
    padding: 1.5rem 1rem;
  }
  
  .signup-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .terms label {
    font-size: 0.8125rem;
  }
}

/* Registration Form */
.registration-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.registration-form h2 {
  text-align: center;
  margin: 0 0 1.5rem 0;
  color: var(--primary-dark);
  font-size: 1.75rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
.form-group {
  margin-bottom: 1rem;
}

label.form-row {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  background: white;
}

button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

.note {
  font-size: 0.9375rem;
  text-align: center;
  color: var(--text-light);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.note a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.note a:hover {
  color: var(--primary-color);
  background: rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 30rem) {
  .registration-form {
    padding: 1.5rem;
  }
  
  .registration-form h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  input, button {
    padding: 0.6875rem;
  }
}
